package com.gdupt.service.impl;

import com.gdupt.entity.SystemUser;
import com.gdupt.entity.vo.UserRoleVo;
import com.gdupt.mapper.SystemUserMapper;
import com.gdupt.service.ISystemUserService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 系统用户 系统用户 服务实现类
 * </p>
 *
 * @author gdupt
 * @since 2018-11-21
 */
@Service
public class SystemUserServiceImpl extends ServiceImpl<SystemUserMapper, SystemUser> implements ISystemUserService {

    @Autowired
    private SystemUserMapper systemUserMapper;
    @Override
    public Boolean add(SystemUser systemUser) {
        return systemUserMapper.add(systemUser);
    }

    @Override
    public Boolean edit(SystemUser systemUser) {
        return systemUserMapper.edit(systemUser);
    }

    @Override
    public Boolean del(int id) {
        return systemUserMapper.del(id);
    }

    @Override
    public UserRoleVo search(int id) {
        return systemUserMapper.search(id);
    }

    @Override
    public Boolean editPwd(SystemUser systemUser) {
        return systemUserMapper.editPwd(systemUser);
    }

    @Override
    public UserRoleVo login(String logName, String logPwd) {
        return systemUserMapper.login(logName,logPwd);
    }
}
